home *** CD-ROM | disk | FTP | other *** search
- property meSprite, baseSprite, myNum, zeroLocH, fullLocH
-
- on beginSprite me
- meSprite = sprite(me.spriteNum)
- baseSprite = sprite((me.spriteNum) - 1)
- if the soundLevel = 0 then set the soundLevel = 1
- myNum = the soundLevel
- zeroLocH = baseSprite.locH - 50
- fullLocH = zeroLocH + 98
- end
-
- on setUp me
- v = the soundLevel * 14
- meSprite.loc = point(zeroLocH + v, meSprite.locV)
- end
-
- on mouseDown me
- repeat while the mouseDown
- if the mouseH < fullLocH and the mouseH > zeroLocH then
- meSprite.loc = point(the mouseH, meSprite.locV)
- updateStage
- else if the mouseH >= fullLocH then
- meSprite.loc = point(fullLocH, meSprite.locV)
- updateStage
- else if the mouseH <= zeroLocH then
- meSprite.loc = point(zeroLocH, meSprite.locV)
- updateStage
- end if
- v = ((meSprite.locH - zeroLocH) / 14) + 1
- the soundLevel = v
- end repeat
- beep
- end
-
-
-
-